package thread.内部api;

import thread._vo.Student;

/**
 * Created mangcao with 2019/5/30 17:48
 * Description:
 */
public class ThreadMain {

    private static Student student = new Student("张麻子");
    private static Student liushuai = new Student("张麻子");


    public static void main(String[] args) throws InterruptedException {
        Thread thread = Thread.currentThread();
//        thread.join();
//        thread.join(9);
//        thread.join(9,1);

        new Thread(() -> {
            try {
                Thread.sleep(5000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

            student._notify();
            System.out.println("---");
        }).start();

        student._wait(0);

    }



}
